libxl: use LOG and LOGE instead of LIBXL__LOG* in libxl_utils.c
authorKelley Nielsen <kelleynnn@gmail.com>
Mon, 11 Nov 2013 23:23:55 +0000 (15:23 -0800)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 14:13:43 +0000 (14:13 +0000)
commit68cd21e88376f79b958e6413657bdaa12b5e4ec0
tree7d9f1e38a238ed3f7462edbf32d82f63de53fa41
parent6976583283ad3ccd0f07aca7497fff8e7ae1f267
libxl: use LOG and LOGE instead of LIBXL__LOG* in libxl_utils.c

Code cleanup - no functional changes

The convenience macros LOG and LOGE have been written to take the
place of the old macros in the LIBXL__LOG* family. Replace the
invocations of the old macros in the function libxl_read_file_contents()
with invocations of the corresponding new ones. Create a local
libxl__gc gc* for the new macros to use by invoking GC_INIT(ctx) at the
top of the function, and clean it up by invoking GC_FREE at the two
exit points.

Suggested-by: Ian Campbell <Ian.Campbell@citrix.com>
Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_utils.c